package com.niit.session9;

import java.util.Scanner;

public class GameChat {
	public static void main(String[] args) {
		String[] sensitiveWords = {"SB","TMD","RNMD","CNM","RNM"};
		Scanner sc = new Scanner(System.in);
//		死循环用于可以无限输入内容
		while (true) {
			String msg = sc.next();
			for (int i = 0; i < sensitiveWords.length; i++) {
//				将铭感词替换成星号
				msg= msg.replace(sensitiveWords[i], "***");
			}
			System.out.println(msg);
			
		}
	}

}
